package com.kkd.kkdapp.http.manager;

import com.kkd.kkdapp.BaseApplication;
import com.kkd.kkdapp.android_async_http.RequestParams;
import com.kkd.kkdapp.db.CurUserModel;
import com.kkd.kkdapp.db.app.model.User;
import com.kkd.kkdapp.utils.SystemUtils;

/**
 * 
 * @ClassName: BaseRequest
 * @Description:服务器请求超时
 * 
 */
public class BaseRequest extends RequestParams{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -3932794165394101466L;

	public BaseRequest() {
		add("channel", "Android");
		add("version",
				SystemUtils.getVersionName(BaseApplication.getInstance()));
		add("channel_id", SystemUtils.getChannel(BaseApplication.getInstance()));
		User mUser = CurUserModel.getCurUser();
		if(mUser!=null){
			add("customerId", mUser.customerId);
			add("token", mUser.token);
		}
		add("deviceId", SystemUtils.getDeviceId());
		
	
	}

}
